<?php
require "./model/index.model.php";
session_start();
$username = $_SESSION['username'];
if(!empty($username)){
  $pid = $_GET["id"]; 
  $str = userList::showuser($pid); 
}else{
  header("Location:./login.php");
  exit();
}
require "./view/userdeit2.tpl.php";
?>